package com.xbongbong.pro.applist.pojo.dto;

import com.xbongbong.paas.domain.entity.ext.ConditionsEntityExt;
import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import com.xbongbong.paas.toolbox.wrap.QueryIgnore;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author long.rao
 * @version v1.0
 * @date 2019/5/29 11:31
 * @since v1.0
 */
@Getter
@Setter
@ToString
public class MobileDetailThroughDTO extends BaseDTO {
    private static final long serialVersionUID = -619813605916499696L;
    /**
     * 业务类型id
     */
    @NotNull(message = "{dto.msg.listAppSearchFilter.businessType.NotNull}")
    private Integer businessType;
    /**
     * 从哪个页面来的
     */
    private Integer fromBusinessType;
    /**
     * 查询该业务的条件Id
     */
    private Long associationId;
    /**
     * 搜索条件
     */
    @Getter(onMethod_ = {@QueryIgnore})
    private List<ConditionsEntityExt> conditions;
    /**
     * 分页当前页
     */
    @Getter(onMethod_ = {@QueryIgnore})
    private Integer page;

    /**
     * 分页每页记录数
     */
    @Getter(onMethod_ = {@QueryIgnore})
    private Integer pageSize;
    /**
     *  or：任一； and：全部（筛选项的条件是任一一个满足，还是需要全部满足）
     */
    @Getter(onMethod_ = {@QueryIgnore})
    private String rel;

    /**
     * 表单id
     */
    private Long formId;

    /**
     * 子业务类型
     */
    private Integer subBusinessType;

    public MobileDetailThroughDTO() {
        rel = "and";
        page = 1;
        pageSize = 20;
    }
}
